/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: wwy
 * Date: 2024-08-21
 * Time: 10:32
 */
public class Dog {
    public String name;
    public String color;
    public void barks(){
        System.out.println(name+"汪汪汪");
    }

    @Override
    public String toString() {
        return "Dog{" +
                "name='" + name + '\'' +
                ", color='" + color + '\'' +
                '}';
    }

    public void wag(){
        System.out.println(name+"摇尾巴");

    }
}
